# -*- coding: utf-8 -*-

################################################################################
## Form generated from reading UI file 'MainWindow - untitledOeMwrZ.ui'
##
## Created by: Qt User Interface Compiler version 6.3.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################

from time import sleep

from PySide.QtCore import (QCoreApplication, QMetaObject, QRect, Qt, )
from PySide.QtGui import (QPixmap, QFont, QLabel, QPushButton, QWidget)
#from PySide.QWidgets import (QLabel, QPushButton, QWidget)


class clickQlabel(QLabel):

    def mousePressEvent(self, e):
        if e.buttons() == Qt.LeftButton:
           sleep(0.2)
           self.window().close()


class Ui_MainWindow(object):
    def __init__(self):
        self.label = None
        self.pushButton = None
        self.centralwidget = None

    def setupUi(self, MainWindow):
        if not MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.resize(800, 600)
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.pushButton = QPushButton(self.centralwidget)
        self.pushButton.setObjectName(u"pushButton")
        self.pushButton.setGeometry(QRect(350, 500, 80, 40))
        self.label = clickQlabel(self.centralwidget)
        self.label.setObjectName(u"label")
        self.label.setGeometry(QRect(0, 0, 800, 600))
        self.label.setTextFormat(Qt.AutoText)
        self.label.setPixmap(QPixmap(u"default.png"))
        self.label.setScaledContents(True)
        MainWindow.setCentralWidget(self.centralwidget)
        font = QFont()
        font.setPointSize(12)
        self.pushButton.setFont(font)
        self.label.raise_()
        self.pushButton.raise_()
        self.retranslateUi(MainWindow)
        self.pushButton.setFlat(0)
        self.pushButton.clicked.connect(MainWindow.close)
        self.pushButton.setDefault(1)
        QMetaObject.connectSlotsByName(MainWindow)
    # setupUi

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"\u4e3b\u7a97\u53e3", None))
        self.pushButton.setText(QCoreApplication.translate("MainWindow", u"\u786e\u5b9a", None))
        self.label.setText("")

    # retranslateUi
